<template>
  <div class="w">
    <img v-for="(image, index) in imageList" :key="index" :src="image" alt="">
  </div>
</template>

<script>
export default {
  name: "app",
  data: function () {
    return {
      imageList: []
    }
  },
  mounted: function () {
    const files = require.context("@/assets/ppt", true, /\.*\.jpg|jpeg|png$/).keys();
    files.forEach(f => {
      this.imageList.push(require("@/assets/ppt" + f.slice(1)));
    });
  },
}
</script>

<style scoped>
  .w {
    /* background-color: #F9FAFB; */
    background-color: lightgray;
  }

  img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 5px;
  }
</style>

